home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat3dm / audio / alGetErrorString.z / alGetErrorString
Encoding:
Text File  |  1998-10-20  |  2.2 KB  |  67 lines

  1.  
  2.  
  3.  
  4. aaaallllGGGGeeeettttEEEErrrrrrrroooorrrrSSSSttttrrrriiiinnnngggg((((3333ddddmmmm))))                                    aaaallllGGGGeeeettttEEEErrrrrrrroooorrrrSSSSttttrrrriiiinnnngggg((((3333ddddmmmm))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      alGetErrorString - get a string corresponding to an Audio Library error
  10.      code
  11.  
  12. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.      ####iiiinnnncccclllluuuuddddeeee <<<<ddddmmmmeeeeddddiiiiaaaa////aaaauuuuddddiiiioooo....hhhh>>>>
  14.  
  15.      cccchhhhaaaarrrr ****aaaallllGGGGeeeettttEEEErrrrrrrroooorrrrSSSSttttrrrriiiinnnngggg((((iiiinnnntttt eeeerrrrrrrroooorrrr))))
  16.  
  17. PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRR
  18.      _e_r_r_o_r       expects an error code as set by any Audio Library function.
  19.  
  20.  
  21. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  22.      The Audio Library defines a set of error codes whose numeric tokens begin
  23.      with the prefix "AL_BAD_".  Typically these are retrieved by calling
  24.      oooosssseeeerrrrrrrroooorrrr(((()))) after an AL function returns a failure code; see the manual
  25.      page for each individual function to see what its error behavior is.
  26.  
  27.      aaaallllGGGGeeeettttEEEErrrrrrrroooorrrrSSSSttttrrrriiiinnnngggg((((3333ddddmmmm)))) returns a character string indicating the meaning
  28.      of the given error value, _e_r_r_o_r.
  29.  
  30.  
  31. EEEEXXXXAAAAMMMMPPPPLLLLEEEE
  32.           #include <dmedia/audio.h>
  33.           ALport p;
  34.  
  35.           p = alOpenPort("exampleOutput", "w", 0);
  36.           if (!p) {
  37.                printf("openport failed: %s\n",  alGetErrorString(oserror()));
  38.                exit(-1);
  39.           }
  40.  
  41.  
  42.  
  43.  
  44. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  45.      oserror(3C), alIntro(3dm)
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.